Calculator Modes: The calculator operates in several modes. The modes are controlled by buttons on the calculator. The current mode setting is indicated by setting the corresponding button to "insensitive".
Pointer Usage: All operations are done with the Button1 (usually leftmost button on the pointer). These can be changed using the translation manager.
button Usage: Most of the buttons are self explanatory (for C programmers). The others are explained below.
16/32 buttons: These buttons toggle the calculator between 16 and 32 bit mode.
sgn/usgn buttons: These buttons determine whether data is treated as signed (2's complement) or unsinged.
CE/C button: Clears the current entry without affecting other settings of the calculator.
C button: Clears everything. The display and memory are set to zero. The mode is set to signed, 32 bit decimal.
( ( & & ^ ^ ) ) ^c off H hex O oct D dec B bin R Rcl S Sto s 16 l 32 + + - - * * / / % % > >> < << 0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 a a b b c c d d e e f f ^h Delete last digit (Not available via button) Delete Delete last digit (Not available via button) = = Return =
You can rebind the keys to your liking using the X defaults file. The action 'doKey("string")' makes the calculator behave as though the button labeled "string" was hit. For example
<Key>Return: DoKey(=)
binds the return key to act as though the equals button was pressed.
baseKey dec, hex, oct, bin controlKey off, C, CE/C evalKey (, ), = sizeKey 16, 32 signKey sgn, usgn memKey Stro, Rcl, Clr shiftKey <<, >> digitKey [0-9a-f] arithKey +, -, *, / bitKey ~, |, &, ^ +/- +/-
Two actions are supported. "DoKey" (described above) and "Delete" with deletes the last digit button pressed.
Shift operations probably should have the shift count always interpreted as decimal.
Overflow detection on input leaves something to be desired.